package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Travel;
import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.domain.UserInfo;

import java.util.List;

public interface ITravelCommentService {

    void save(TravelComment travelComment);

    void delete(String id);

    void update(TravelComment travelComment);

    TravelComment find(String id);

    List<TravelComment> findAll();

    /**
     * 添加游记评论对象到数据库
     * @param travelComment
     * @param userInfo
     */
    void commentAdd(TravelComment travelComment, UserInfo userInfo);

    /**
     * 根据travelId查comments
     * @param travelId
     */
    List<TravelComment> queryCommentsByTravelId(String travelId);
}
